package pages;

public class User {
    // ID，唯一性
    private Long id;
    // 登录ID
    private String mobile;
    // 用户名
    private String name;
    // 角色
    private Long role;
    // 备注
    private String note;

    public User() {
    }

    public User(Long id, String mobile, String name) {
        this.id = id;
        this.mobile = mobile;
        this.name = name;
    }

    public User(String mobile, String name) {
        this.mobile = mobile;
        this.name = name;
    }

    public User(String mobile, String name, String note) {
        this.mobile = mobile;
        this.name = name;
        this.note = note;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getRole() {
        return role;
    }

    public void setRole(Long role) {
        this.role = role;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", mobile='" + mobile + '\'' +
                ", name='" + name + '\'' +
                ", role=" + role +
                ", note='" + note + '\'' +
                '}';
    }
}
